package com.examplemartin.jpademo.pojo.po.repository.purchase;

import com.examplemartin.jpademo.pojo.admin.BaseEntity;
import com.examplemartin.jpademo.pojo.po.good.GoodPO;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 采购订单明细实体
 */

@Data
@EqualsAndHashCode(callSuper = true)
@Entity(name = "t_purindetail")
public class PurInDetailPO extends BaseEntity implements Serializable {

  // 采购入库单 one
  @ManyToOne
  private PurInPO purInPO;

  // 商品 one
  @ManyToOne
  private GoodPO goodPO;

  // 到货数量
  private Integer goodcount;

  @Override
  public String toString() {
    return "PurInDetailPO{" +
            "purInPO=" + purInPO +
            ", goodPO=" + goodPO +
            ", goodcount=" + goodcount +
            '}';
  }
}
